﻿<UserControl x:Class="Historia.Controls.ctrElements"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="50*"></RowDefinition>
            <RowDefinition Height="auto"></RowDefinition>
            <RowDefinition Height="30*"></RowDefinition>
        </Grid.RowDefinitions>
        <Label Grid.Column="0" Grid.Row="0">
            <Label.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FFB7B7FF" Offset="1" />
                    <GradientStop Color="White" Offset="0" />
                </LinearGradientBrush>
            </Label.Background> Éléments</Label>
        <StackPanel Grid.Column="0" Grid.Row="1" Orientation="Horizontal" Background="#FFB7B7FF">
            <Button Name="btnNouveau" ToolTip="Nouveau" BorderBrush="{x:Null}" Background="{x:Null}" Focusable="False" Click="btnNouveau_Click">
                <Image Source="/Historia;component/Images/Nouveau.png" Stretch="None"></Image>
            </Button>
            <Button Name="btnModifier" ToolTip="Modifier" BorderBrush="{x:Null}" Background="{x:Null}" Focusable="False" Click="btnModifier_Click">
                <Image Source="/Historia;component/Images/Crayon.png" Stretch="None"></Image>
            </Button>
            <Button Name="btnSupprimer" ToolTip="Supprimer" BorderBrush="{x:Null}" Background="{x:Null}" Focusable="False" Click="btnSupprimer_Click">
                <Image Source="/Historia;component/Images/Supprimer.png" Stretch="None"></Image>
            </Button>
            <Button Name="btnAssigner" ToolTip="Assigner à la scène" BorderBrush="{x:Null}" Background="{x:Null}" Focusable="False" Click="btnAssigner_Click">
                <Image Source="/Historia;component/Images/chain.png" Stretch="None"></Image>
            </Button>
            <Button Name="btnAgrandirTout" ToolTip="Agrandir Tout" BorderBrush="{x:Null}" Background="{x:Null}" Focusable="False" Click="btnAgrandirTout_Click">
                <Image Source="/Historia;component/Images/expand-icon.png" Stretch="None"></Image>
            </Button>
            <Button Name="btnRefermerTout" ToolTip="Refermer Tout" BorderBrush="{x:Null}" Background="{x:Null}" Focusable="False" Click="btnRefermerTout_Click">
                <Image Source="/Historia;component/Images/collaps-icon.png" Stretch="None"></Image>
            </Button>
       </StackPanel>
        
        <TabControl Grid.Column="0" Grid.Row="2" Name="tabElements" SelectionChanged="tabElements_SelectionChanged">
            <TabItem Name="tapPersonnages" Header="Personnages">
                <TreeView Name="tvPersonnages" SelectedItemChanged="tvPersonnages_SelectedItemChanged"></TreeView>
            </TabItem>
            <TabItem Name="tapLieux" Header="Lieux">
                <TreeView Name="tvLieux" SelectedItemChanged="tvLieux_SelectedItemChanged"></TreeView>
            </TabItem>
            <TabItem Name="tapItems" Header="Items">
                <TreeView Name="tvItems" SelectedItemChanged="tvItems_SelectedItemChanged"></TreeView>
            </TabItem>
            <TabItem Name="tapFils" Header="Fils">
                <TreeView Name="tvFils" SelectedItemChanged="tvFils_SelectedItemChanged"></TreeView>
            </TabItem>
            <TabItem Name="tapRecherches" Header="Recherches">
                <TreeView Name="tvRecherches" SelectedItemChanged="tvRecherches_SelectedItemChanged"></TreeView>
            </TabItem>
        </TabControl>
        <GridSplitter Grid.Column="0" Grid.Row="3" ResizeDirection="Rows" Height="3" VerticalAlignment="Center" HorizontalAlignment="Stretch" />
        <DockPanel Grid.Column="0" Grid.Row="4" LastChildFill="True" Name="rich">
            <Label DockPanel.Dock="Top">
                <Label.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFB7B7FF" Offset="1" />
                        <GradientStop Color="White" Offset="0" />
                    </LinearGradientBrush>
                </Label.Background> Information
            </Label>
            <FlowDocumentScrollViewer>
                <FlowDocument>
                    <Table FontFamily="Segoe UI" FontSize="12" Name="tblInfo">
                        <Table.Columns>
                            <TableColumn Width="*"></TableColumn>
                            <TableColumn Width="3*"></TableColumn>
                        </Table.Columns>
                        <TableRowGroup>

                        </TableRowGroup>
                    </Table>
                </FlowDocument>
            </FlowDocumentScrollViewer>
        </DockPanel>
    </Grid>
</UserControl>
